<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  
  <Target Name="Clean">
    <ItemGroup>
      <DllFiles Include="\bin\*\*.dll" />
    </ItemGroup>
    <Delete Files="@(DllFiles)" />
  </Target>

  <Target Name="Compile" DependsOnTargets="Clean">
    <ItemGroup>
      <ProjectFiles Include="**\*.csproj" />
    </ItemGroup>
    <MSBuild Projects="@(ProjectFiles)" />
  </Target>

  <Target Name="Test">
    <ItemGroup>
      <Tests Include="Tests\*.Tests\bin\Debug\*.Tests.dll" />
    </ItemGroup>
    <Exec Command='"C:\Microsoft Visual Studio 9.0\Common7\IDE\mstest.exe" /testcontainer:@(Tests)'/>
  </Target>


  <Target Name="All">
    <CallTarget Targets="Clean"/>
    <CallTarget Targets="Compile"/>
    <CallTarget Targets="Test"/>
  </Target>
 
</Project>
